package com.martin.fast_frame_compose.page.main

import androidx.activity.compose.setContent
import androidx.lifecycle.ViewModelProvider
import com.martin.lib_base.base.BaseActivity

class MainActivity : BaseActivity() {

    val viewModel by lazy {
        ViewModelProvider(this)[MainViewModel::class.java]
    }

    override fun initContent() {
        setContent {
            MainPage(vModel = viewModel)
        }
    }

    override fun showLoading() {
        viewModel.showLoading()
    }

    override fun dismissLoading() {
        viewModel.dismissLoading()
    }
}
